package com.chinacoal.microservice.api.fallback;

import java.util.List;

import javax.validation.Valid;

import org.springframework.stereotype.Component;

import com.baomidou.mybatisplus.plugins.Page;
import com.chinacoal.microservice.api.WorkflowClient;
import com.chinacoal.microservice.model.wofkflow.ApproveParam;
import com.chinacoal.microservice.model.wofkflow.QueryTaskListParam;
import com.chinacoal.microservice.model.wofkflow.SubmitParam;
import com.chinacoal.microservice.model.wofkflow.entity.ApprovalHistoryEntity;
import com.chinacoal.microservice.model.wofkflow.entity.InstanceEntity;
import com.chinacoal.microservice.model.wofkflow.entity.WorkItemEntity;
import com.chinacoal.microservice.util.result.CodeMsg;
import com.chinacoal.microservice.util.result.Result;

/**  
 * @Package: com.chinacoal.microservice.api.fallback.WorkflowClientFallback
 * @ClassName: WorkflowClientFallback
 * @ClassDesc: 工作流管理Fallback
 * @Createby: sunh
 * @CreatedDate: 2019-11-28 21:43:30
 */  
@Component
public class WorkflowClientFallback implements WorkflowClient {

	@Override
	public Result<InstanceEntity> processSubmit(@Valid SubmitParam submitParam) {
		// TODO Auto-generated method stub
		return Result.error(CodeMsg.FALLBACK);
	}

	@Override
	public Result<InstanceEntity> completeTask(@Valid ApproveParam approveModal) {
		// TODO Auto-generated method stub
		return Result.error(CodeMsg.FALLBACK);
	}

	@Override
	public Result<Object> deleteInstanceById(List<Long> instanceIds) {
		// TODO Auto-generated method stub
		return Result.error(CodeMsg.FALLBACK);
	}

	@Override
	public Result<Page<WorkItemEntity>> getTaskList(Integer page, Integer pageSize,
			@Valid QueryTaskListParam queryParam) {
		// TODO Auto-generated method stub
		return Result.error(CodeMsg.FALLBACK);
	}

	@Override
	public Result<Page<WorkItemEntity>> getAchTaskList(Integer page, Integer pageSize, @Valid QueryTaskListParam queryParam) {
		// TODO Auto-generated method stub
		return Result.error(CodeMsg.FALLBACK);
	}

	@Override
	public Result<Page<ApprovalHistoryEntity>> getApprovalHistory(Integer page, Integer pageSize, Long instanceId) {
		// TODO Auto-generated method stub
		return Result.error(CodeMsg.FALLBACK);
	}
	
}
